<?php 
    $content = array();
    $condsDefault = $this->String->condsDefault();
    $condsDefault = array_merge($condsDefault,array('NodeTerm.term_id' => 4));
    $fields = $this->String->nodeFields();
    $order = $this->String->orderFields();
    $opt = array(
        'conditions' => $condsDefault,
        'find' => 'all',
        'fields' => $fields,
        'order' => array('Node.created' => 'asc'),
        'locale' => true
    );
    $content = $this->String->get_data('Node','NodeTerm',$opt);
?>
<div class="tabpanel-cus" role="tabpanel">
    <?php if(!empty($content)):?>
        <!-- Nav tabs -->
        <ul class="nav nav-tabs cl-mytabs mytabs-cus"> 
            <?php $i=0;foreach($content as $key => $values):?>
                <?php if($i==0) $classActive = 'active';?>
                <li class="item <?php echo $classActive;?>"><a href="#item-<?php echo $key;?>" data-toggle="tab"><?php echo $values['Node']['title'];?></a></li>
            <?php $classActive='';$i++;endforeach;?>
            <li class="item"><a href="javascript:void(0)" onclick="tst()" data-toggle="tab"><?php echo __d('default','CÂU HỎI THƯỜNG GẶP');?></a></li>
        </ul>
        <!-- Tab panes -->
        <div class="tab-content">
            <?php $i=0;foreach($content as $key => $values):?>
                <?php if($i==0) $classActive = 'in active';?>
                <div class="tab-pane tab-pane-bgfull fade <?php echo $classActive;?>" id="item-<?php echo $key;?>">
                <div class="tabs-pane-content">
                    <?php echo $values['Node']['field_body'];?>
                </div>
            </div>
            <?php $classActive='';$i++;endforeach;?>
        </div>
    <?php endif;?>
</div>